package com.example.everying.model.entity.content;/*
 * 项目名称: everything
 * 文件名: PublishTemplate
 * 作者: 张泽阳
 * 日期: 2025/8/8
 * 描述:
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;

@Data
@TableName("publish_template")
public class PublishTemplate {

    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户id")
    private String UserId;

    @ApiModelProperty(value = "模版名称")
    private String templateName;

    @ApiModelProperty(value = "标题")
    @Size(message = "最多700字符", max = 700)
    private String title;

    @ApiModelProperty(value = "内容")
    @Size(message = "最多700字符", max = 700)
    private String content;

    @ApiModelProperty(value = "富文本内容")
    @Size(message = "最多700字符", max = 700)
    private String contents;

    @ApiModelProperty(value = "接单类型0:正常；1：自动接单；2：手动接单")
    private String ordersType;

    @ApiModelProperty(value = "隐私信息")
    @Size(message = "最多700字符", max = 700)
    private String information;

    @ApiModelProperty(value = "模板类型： 0-官方模本 1-自定义模板")
    private Integer type;

    @ApiModelProperty(value = "发布类型：0：帖子；1：卖；2：买；3:广告")
    private Integer publishType;

    @ApiModelProperty(value = "使用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime useTime;

    @ApiModelProperty(value = "修改模版id")
    private String templateId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志位")
    private Integer isDelete;
}
